package mn.idax.exchange.otc.domain.capital;

import lombok.Builder;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author .shouhua
 * @time 2018.11.22
 */
@Builder
@Data
@ToString
public class TransferCapitalDTO implements Serializable {
    private Long guid;
    private Integer txId;
    private String txName;
    private Integer reverse;
    private Integer coinId;
    private String coinCode;
    private Integer sourceId;
    private TransferAccountDTO sellerAccount;
    private TransferAccountDTO buyerAccount;

    public TransferCapitalDTO(Long guid, Integer txId, String txName, Integer reverse, Integer coinId, String coinCode, Integer sourceId, TransferAccountDTO sellerAccount, TransferAccountDTO buyerAccount) {
        this.guid = guid;
        this.txId = txId;
        this.txName = txName;
        this.reverse = null == reverse ? 0 : reverse;
        this.coinId = coinId;
        this.coinCode = coinCode;
        this.sourceId = sourceId;
        this.sellerAccount = sellerAccount;
        this.buyerAccount = buyerAccount;
    }
}
